Skip to content

Conversation

@mrrobot47
Copy link
Member

This pull request introduces a new backup and restore functionality for sites, along with some related updates to the codebase. The most important changes include adding a new helper file for backup and restore operations, implementing backup and restore commands, and ensuring proper cleanup of lock files during shutdown.

Backup and Restore Functionality:

  • Added new helper file for backup and restore operations: The composer.json file now includes a reference to src/helper/Site_Backup_Restore.php, which is used to handle site backup and restore logic.
  • Implemented backup and restore commands: Two new methods, backup and restore, were added to the class-ee-site.php file. These methods allow users to back up a site or restore it from a backup using command-line options. Detailed usage examples are provided in the comments.

- Implemented backup and restore methods for different site types (HTML, PHP, WordPress).
- Added functionality to list remote backups and verify backup IDs.
- Included pre-checks for backup and restore processes to ensure system readiness.
- Integrated rclone for remote storage management of backups.
- Enhanced metadata handling during backup and restore operations.
- Added methods for backing up site details, configurations, and databases.
- Implemented error handling and logging for better traceability.
@mrrobot47 mrrobot47 merged commit 275e435 into develop Jul 10, 2025
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants